#ifndef _SUBS_H
#define _SUBS_H
#include "video_state.h"
int is_realtime(AVFormatContext *s);
int64_t is_valid_channel_layout(int64_t channel_layout, int channels);
int cmp_audio_fmts(enum AVSampleFormat fmt1, int64_t channel_count1,
                   enum AVSampleFormat fmt2, int64_t channel_count2);
int get_video_frame(VideoState *is, AVFrame *frame);
void calculate_display_rect(SDL_Rect *rect, int scr_xleft, int scr_ytop,
							int scr_width, int scr_height,
							int pic_width, int pic_height, AVRational pic_sar);
void set_default_window_size(int width, int height, AVRational sar);
void stream_toggle_pause(VideoState *is);
void step_to_next_frame(VideoState *is);
int queue_picture(VideoState *is, AVFrame *src_frame, double pts, double duration, int64_t pos, int serial);
#endif
